def selection_sort(array):
    n=len(array)
    for i in range(n-1):
        number=min(array[i:])
        j=array.index(number)
        array[i],array[j]=array[j],array[i]

array=[14,33,27,10,35,19,42,44]
print(array)
selection_sort(array)
print(array)
